gtk4.git
6 years agolevel bar: Make final
Matthias Clasen [Mon, 27 May 2019 02:24:14 +0000 (22:24 -0400)]
level bar: Make final

6 years agoimage: Make final
Matthias Clasen [Mon, 27 May 2019 02:22:40 +0000 (22:22 -0400)]
image: Make final

6 years agogl area: Use standard padding
Matthias Clasen [Mon, 27 May 2019 02:18:30 +0000 (22:18 -0400)]
gl area: Use standard padding

6 years agocombo box: Use standard padding
Matthias Clasen [Mon, 27 May 2019 02:19:04 +0000 (22:19 -0400)]
combo box: Use standard padding

6 years agocombo box text: Make final
Matthias Clasen [Mon, 27 May 2019 02:16:58 +0000 (22:16 -0400)]
combo box text: Make final

6 years agocell view: Drop the priv pointer
Matthias Clasen [Mon, 27 May 2019 02:14:03 +0000 (22:14 -0400)]
cell view: Drop the priv pointer

6 years agocell view: Make final
Matthias Clasen [Mon, 27 May 2019 01:59:49 +0000 (21:59 -0400)]
cell view: Make final

6 years agoDrop cellarea subclassing tests
Matthias Clasen [Mon, 27 May 2019 02:13:45 +0000 (22:13 -0400)]
Drop cellarea subclassing tests

6 years agoaction bar: Make final
Matthias Clasen [Mon, 27 May 2019 01:57:42 +0000 (21:57 -0400)]
action bar: Make final

6 years agocell area box: Drop the priv pointer
Matthias Clasen [Mon, 27 May 2019 01:56:00 +0000 (21:56 -0400)]
cell area box: Drop the priv pointer

6 years agobuilder: Use standard padding
Matthias Clasen [Mon, 27 May 2019 01:43:34 +0000 (21:43 -0400)]
builder: Use standard padding

6 years agocell area: Drop the priv pointer
Matthias Clasen [Mon, 27 May 2019 01:42:22 +0000 (21:42 -0400)]
cell area: Drop the priv pointer

6 years agocell area: Use standard padding
Matthias Clasen [Mon, 27 May 2019 01:34:06 +0000 (01:34 +0000)]
cell area: Use standard padding

6 years agoaspect frame: Make final
Matthias Clasen [Mon, 27 May 2019 01:32:24 +0000 (01:32 +0000)]
aspect frame: Make final

6 years agoassistant: Drop the priv pointer
Matthias Clasen [Mon, 27 May 2019 01:20:53 +0000 (21:20 -0400)]
assistant: Drop the priv pointer

6 years agoassistant: Make final
Matthias Clasen [Mon, 27 May 2019 01:08:01 +0000 (21:08 -0400)]
assistant: Make final

6 years agoaccel label: Make final
Matthias Clasen [Mon, 27 May 2019 00:56:50 +0000 (00:56 +0000)]
accel label: Make final

6 years agoabout dialog: Make final
Matthias Clasen [Mon, 27 May 2019 00:49:19 +0000 (20:49 -0400)]
about dialog: Make final

6 years agocell renderer pixbuf: Drop the priv pointer
Matthias Clasen [Mon, 27 May 2019 00:46:38 +0000 (20:46 -0400)]
cell renderer pixbuf: Drop the priv pointer

6 years agocell renderer pixbuf: Make final
Matthias Clasen [Mon, 27 May 2019 00:44:07 +0000 (20:44 -0400)]
cell renderer pixbuf: Make final

6 years agocell renderer progress: Drop the priv pointer
Matthias Clasen [Mon, 27 May 2019 00:42:08 +0000 (20:42 -0400)]
cell renderer progress: Drop the priv pointer

6 years agocell renderer progress: Make final
Matthias Clasen [Mon, 27 May 2019 00:40:15 +0000 (20:40 -0400)]
cell renderer progress: Make final

6 years agocell renderer spin: Drop the priv pointer
Matthias Clasen [Mon, 27 May 2019 00:37:42 +0000 (20:37 -0400)]
cell renderer spin: Drop the priv pointer

6 years agocell renderer spin: Make final
Matthias Clasen [Mon, 27 May 2019 00:35:26 +0000 (20:35 -0400)]
cell renderer spin: Make final

6 years agocell renderer spinner: Drop priv pointer
Matthias Clasen [Mon, 27 May 2019 00:33:38 +0000 (20:33 -0400)]
cell renderer spinner: Drop priv pointer

6 years agocell renderer spinner: Make final
Matthias Clasen [Mon, 27 May 2019 00:30:04 +0000 (20:30 -0400)]
cell renderer spinner: Make final

6 years agocell renderer text: Drop the priv pointer
Matthias Clasen [Mon, 27 May 2019 00:27:36 +0000 (20:27 -0400)]
cell renderer text: Drop the priv pointer

6 years agocell renderer text: Use standard padding
Matthias Clasen [Mon, 27 May 2019 00:21:50 +0000 (20:21 -0400)]
cell renderer text: Use standard padding

6 years agocell renderer toggle: Drop the priv pointer
Matthias Clasen [Mon, 27 May 2019 00:20:11 +0000 (20:20 -0400)]
cell renderer toggle: Drop the priv pointer

6 years agocell renderer toggle: Make final
Matthias Clasen [Mon, 27 May 2019 00:17:15 +0000 (20:17 -0400)]
cell renderer toggle: Make final

6 years agocell renderer combo: Drop the priv pointer
Matthias Clasen [Mon, 27 May 2019 00:12:40 +0000 (20:12 -0400)]
cell renderer combo: Drop the priv pointer

6 years agocell renderer combo: Make final
Matthias Clasen [Mon, 27 May 2019 00:07:53 +0000 (20:07 -0400)]
cell renderer combo: Make final

6 years agocell renderer accel: Drop the priv pointer
Matthias Clasen [Sun, 26 May 2019 23:51:49 +0000 (19:51 -0400)]
cell renderer accel: Drop the priv pointer

6 years agocell renderer accel: Make final
Matthias Clasen [Sun, 26 May 2019 23:47:04 +0000 (19:47 -0400)]
cell renderer accel: Make final

6 years agocell renderer: Use standard padding
Matthias Clasen [Sun, 26 May 2019 23:35:24 +0000 (23:35 +0000)]
cell renderer: Use standard padding

6 years agocalendar: Drop the priv pointer
Matthias Clasen [Sun, 26 May 2019 23:20:26 +0000 (19:20 -0400)]
calendar: Drop the priv pointer

6 years agocalendar: Make final
Matthias Clasen [Sun, 26 May 2019 22:56:56 +0000 (18:56 -0400)]
calendar: Make final

6 years agospinner: Make final
Matthias Clasen [Sun, 26 May 2019 22:50:49 +0000 (18:50 -0400)]
spinner: Make final

6 years agoprogress bar: Make final
Matthias Clasen [Sun, 26 May 2019 22:49:21 +0000 (18:49 -0400)]
progress bar: Make final

6 years agoprint operation: Drop the priv pointer
Matthias Clasen [Sun, 26 May 2019 22:38:19 +0000 (18:38 -0400)]
print operation: Drop the priv pointer

6 years agoprint operation: Use standard class padding
Matthias Clasen [Sun, 26 May 2019 22:24:37 +0000 (22:24 +0000)]
print operation: Use standard class padding

6 years agoRename gtkprintbackend.h to gtkprintbackendprivate.h
Matthias Clasen [Sun, 26 May 2019 21:57:23 +0000 (21:57 +0000)]
Rename gtkprintbackend.h to gtkprintbackendprivate.h

Follow the naming convention for private headers.

6 years agoprint job: Make final
Matthias Clasen [Sun, 26 May 2019 21:51:24 +0000 (17:51 -0400)]
print job: Make final

No need to subclass this.

6 years agoprinter: Drop the priv pointer
Matthias Clasen [Sun, 26 May 2019 20:46:58 +0000 (16:46 -0400)]
printer: Drop the priv pointer

6 years agoprinter: Make private
Matthias Clasen [Sun, 26 May 2019 20:35:55 +0000 (20:35 +0000)]
printer: Make private

We want to subclass this in print backends,
but we don't want to allow out-of-tree subclassing.

6 years agoRename gtkprinter-private.h
Matthias Clasen [Sun, 26 May 2019 20:29:57 +0000 (16:29 -0400)]
Rename gtkprinter-private.h

Name this header gtkprinterprivate.h, following
our convention for private headers.

6 years agostack switcher: Make final
Matthias Clasen [Sun, 26 May 2019 20:23:17 +0000 (16:23 -0400)]
stack switcher: Make final

This should not be subclassed.

6 years agostack sidebar: Make final
Matthias Clasen [Sun, 26 May 2019 20:19:44 +0000 (16:19 -0400)]
stack sidebar: Make final

This should not be subclassed.

6 years agoprint dialog: Drop the priv pointer
Matthias Clasen [Sun, 26 May 2019 20:08:01 +0000 (20:08 +0000)]
print dialog: Drop the priv pointer

6 years agoprint dialog: Make final
Matthias Clasen [Sun, 26 May 2019 19:55:04 +0000 (19:55 +0000)]
print dialog: Make final

Nobody should subclass this.

6 years agopage setup dialog: Drop the priv pointer
Matthias Clasen [Sun, 26 May 2019 19:43:41 +0000 (19:43 +0000)]
page setup dialog: Drop the priv pointer

6 years agopage setup dialog: Make final
Matthias Clasen [Sun, 26 May 2019 19:38:39 +0000 (19:38 +0000)]
page setup dialog: Make final

No subclassing needed.

6 years agoswitch: Make final
Matthias Clasen [Sun, 26 May 2019 19:34:31 +0000 (15:34 -0400)]
switch: Make final

This should not be subclassed.

6 years agoicon theme: Make final
Matthias Clasen [Sun, 26 May 2019 19:33:10 +0000 (15:33 -0400)]
icon theme: Make final

Nobody should subclass GtkIconTheme or GtkIconInfo.

6 years agotextview: Use standard padding
Matthias Clasen [Sun, 26 May 2019 19:25:46 +0000 (15:25 -0400)]
textview: Use standard padding

Given that GtkSourceView exists, we will have
to keep GtkTextView subclassable until a replacement
appears.

6 years agoviewport: Cleanup
Matthias Clasen [Sun, 26 May 2019 19:18:42 +0000 (15:18 -0400)]
viewport: Cleanup

6 years agoviewport: Make final
Matthias Clasen [Sun, 26 May 2019 19:16:00 +0000 (15:16 -0400)]
viewport: Make final

No need to derive from it.

6 years agoTrivial
Matthias Clasen [Sat, 25 May 2019 21:52:15 +0000 (21:52 +0000)]
Trivial

6 years agosurface: fix up docs
Matthias Clasen [Sat, 25 May 2019 20:46:41 +0000 (20:46 +0000)]
surface: fix up docs

The docs for gdk_surface_invalidate_region were
talking about a no-longer-existing argument.

6 years agocolor plane: Don't allocate 0-size textures
Matthias Clasen [Mon, 20 May 2019 12:49:56 +0000 (12:49 +0000)]
color plane: Don't allocate 0-size textures

This triggers critials, and does us no good.

6 years agoCosmetics
Matthias Clasen [Mon, 20 May 2019 05:04:17 +0000 (05:04 +0000)]
Cosmetics

6 years agorendernodeparser: Parse Cairo nodes
Benjamin Otte [Sat, 25 May 2019 22:50:13 +0000 (00:50 +0200)]
rendernodeparser: Parse Cairo nodes

We also print the script, but we don't parse it yet.

6 years agorendernode: Remove unused function
Benjamin Otte [Sat, 25 May 2019 21:50:46 +0000 (23:50 +0200)]
rendernode: Remove unused function

6 years agoinspector: Make updates overlay not crash
Benjamin Otte [Sat, 25 May 2019 20:30:29 +0000 (22:30 +0200)]
inspector: Make updates overlay not crash

... when a window gets hidden and later reshown.

The code now properly cleans up a window when it gets unmapped instead
of trying to retain previous updates information.

6 years agoRevert "wayland: Keep some resources until destroy"
Matthias Clasen [Sat, 25 May 2019 18:08:43 +0000 (18:08 +0000)]
Revert "wayland: Keep some resources until destroy"

This reverts commit f2d598b9a19cd7151c592e9c74d5b0d0ba3c9e48.

6 years agowidget-factory: Add some animation in a popover
Matthias Clasen [Fri, 24 May 2019 11:38:54 +0000 (11:38 +0000)]
widget-factory: Add some animation in a popover

6 years agobroadway: add frame times to the profiler
Matthias Clasen [Fri, 24 May 2019 11:18:31 +0000 (11:18 +0000)]
broadway: add frame times to the profiler

6 years agofishbowl: Add a menubutton demo
Matthias Clasen [Fri, 24 May 2019 00:31:07 +0000 (00:31 +0000)]
fishbowl: Add a menubutton demo

This reveals some issues with the position tracking.

6 years agomenu button: Add popup/popdown functions
Matthias Clasen [Fri, 24 May 2019 00:30:39 +0000 (00:30 +0000)]
menu button: Add popup/popdown functions

These are needed, after all.

6 years agofishbowl: Fix the lock button
Matthias Clasen [Fri, 24 May 2019 00:11:23 +0000 (00:11 +0000)]
fishbowl: Fix the lock button

6 years agogl renderer: Make creating render targets easier
Timm Bäder [Wed, 22 May 2019 05:10:57 +0000 (07:10 +0200)]
gl renderer: Make creating render targets easier

6 years agogl renderer: Remove some unused api form the GLDriver
Timm Bäder [Wed, 22 May 2019 04:55:45 +0000 (06:55 +0200)]
gl renderer: Remove some unused api form the GLDriver

6 years agofishbowl: Don't show ridiculous precision
Matthias Clasen [Thu, 23 May 2019 12:37:47 +0000 (12:37 +0000)]
fishbowl: Don't show ridiculous precision

Two decimals are more than enough for the frame rate.

6 years agoMerge branch 'issue1901-gtk4' into 'master'
Matthias Clasen [Wed, 22 May 2019 11:42:54 +0000 (11:42 +0000)]
Merge branch 'issue1901-gtk4' into 'master'

wayland: Use scale from core wl_output protocol

Closes #1901

See merge request GNOME/gtk!870

6 years agowayland: Use scale from core wl_output protocol
Olivier Fourdan [Wed, 22 May 2019 10:11:36 +0000 (12:11 +0200)]
wayland: Use scale from core wl_output protocol

The “xdg-output” protocol provides clients with the outputs size and
position in compositor coordinates, and does not provide the output
scale which is already provided by the core “wl_output” protocol.

So when receiving the wl_output scale event, we should update the scale
regardless of “xdg-output” support, otherwise the scale will remain to
its default value of 1 and the surface will be scaled up by the
compositor to match the actual output scale, which causes blurry fonts
and widgets.

Fixes: https://gitlab.gnome.org/GNOME/gtk/issues/1901
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
6 years agogtk-demo: Reinstate flat menu buttons
Matthias Clasen [Tue, 21 May 2019 22:39:50 +0000 (22:39 +0000)]
gtk-demo: Reinstate flat menu buttons

6 years agowidget-factory: Reinstate flat menu buttons
Matthias Clasen [Tue, 21 May 2019 22:39:28 +0000 (22:39 +0000)]
widget-factory: Reinstate flat menu buttons

6 years agomenu button: Add a relief property
Matthias Clasen [Tue, 21 May 2019 22:39:03 +0000 (22:39 +0000)]
menu button: Add a relief property

This is used in various places.

6 years agotestscrolledwindow: GtkMenuButton != GtkContainer
Daniel Boles [Tue, 21 May 2019 20:19:40 +0000 (21:19 +0100)]
testscrolledwindow: GtkMenuButton != GtkContainer

It's not anymore, so don't cast it to one... Use the new :label instead.

6 years agotestsuite: Fix leak
Krzesimir Nowak [Tue, 21 May 2019 15:36:00 +0000 (17:36 +0200)]
testsuite: Fix leak

6 years agoMerge branch 'mkenums-once' into 'master'
Emmanuele Bassi [Tue, 21 May 2019 16:42:05 +0000 (16:42 +0000)]
Merge branch 'mkenums-once' into 'master'

Use g_once for all the mkenums template files

Closes #1617

See merge request GNOME/gtk!865

6 years agoUse g_once for all the mkenums template files
Federico Mena Quintero [Tue, 21 May 2019 15:32:08 +0000 (10:32 -0500)]
Use g_once for all the mkenums template files

Without this, initialization of enum/flags values from multithreaded
programs may not work correctly.

Fixes #1617.

6 years agoMerge branch 'win32-enable-werror' into 'master'
Benjamin Otte [Tue, 21 May 2019 14:39:53 +0000 (14:39 +0000)]
Merge branch 'win32-enable-werror' into 'master'

Win32 enable werror

See merge request GNOME/gtk!861

6 years agoMerge branch 'issue-302-master' into 'master'
Emmanuele Bassi [Tue, 21 May 2019 13:46:23 +0000 (13:46 +0000)]
Merge branch 'issue-302-master' into 'master'

docs: Fix the override for GdkAtom

Closes #302

See merge request GNOME/gtk!864

6 years agodocs: Fix the override for GdkAtom
Emmanuele Bassi [Tue, 21 May 2019 13:27:33 +0000 (14:27 +0100)]
docs: Fix the override for GdkAtom

GdkAtom is a typedef to a pointer to an opaque structure. We need to
tell GTK-Doc how to override it, so that the documentation is accurate.

Fixes: #302
6 years agogl renderer: Render recording surface untransformed
Timm Bäder [Tue, 21 May 2019 06:38:11 +0000 (08:38 +0200)]
gl renderer: Render recording surface untransformed

Cairo can't handle the y flip apparently.

Fixes #1906

6 years agogl glyphcache: Don't choke on huge glyphs
Timm Bäder [Mon, 20 May 2019 13:12:15 +0000 (15:12 +0200)]
gl glyphcache: Don't choke on huge glyphs

We blindly assume everywhere that a single glyph will definitely fit on
one atlas, but that's not always the case.
For now, don't crash or produce GL errors.

6 years agowidget: Don't always call get_display() when allocating
Timm Bäder [Mon, 20 May 2019 11:46:36 +0000 (13:46 +0200)]
widget: Don't always call get_display() when allocating

The GTK_DISPLAY_DEBUG_CHECK macro will cleverly only call the function
if any of the display debug flags are set, so in the common case it
won't even be executed.

6 years agowin32: Fix meson names for defines
Benjamin Otte [Tue, 21 May 2019 05:46:42 +0000 (07:46 +0200)]
win32: Fix meson names for defines

Those have been wrong forever, but nobody cares because they get to the
values we want anyway.

6 years agowin32: Enable --werror in CI
Benjamin Otte [Tue, 21 May 2019 05:26:25 +0000 (07:26 +0200)]
win32: Enable --werror in CI

6 years agowin32: Remove outdated workaround
Benjamin Otte [Tue, 21 May 2019 05:33:13 +0000 (07:33 +0200)]
win32: Remove outdated workaround

The function that was missing in 2016 does exist now.

Fixes gcc complaining about a wrong declaration.

6 years agotests: Use g_free(), not free()
Benjamin Otte [Tue, 21 May 2019 05:20:45 +0000 (07:20 +0200)]
tests: Use g_free(), not free()

Windows doesn't like that.

6 years agoimcontextime: Add missing semicolon
Benjamin Otte [Tue, 21 May 2019 05:18:50 +0000 (07:18 +0200)]
imcontextime: Add missing semicolon

I wonder how thoroughly this was tested... ;)

6 years agowin32: Add missing enum value to switch statement
Benjamin Otte [Tue, 21 May 2019 05:17:44 +0000 (07:17 +0200)]
win32: Add missing enum value to switch statement

6 years agoimcontextime: Remove unused variables
Benjamin Otte [Tue, 21 May 2019 05:17:31 +0000 (07:17 +0200)]
imcontextime: Remove unused variables

6 years agowin32: Rename a shadowing variable
Benjamin Otte [Tue, 21 May 2019 05:15:16 +0000 (07:15 +0200)]
win32: Rename a shadowing variable

6 years agowindow: Remove unneeded variable
Benjamin Otte [Tue, 21 May 2019 05:14:21 +0000 (07:14 +0200)]
window: Remove unneeded variable

The variable would show up as a gcc warning in builds without X11
support.

6 years agowin32: Actually pass y variable for y parameter
Benjamin Otte [Tue, 21 May 2019 05:11:03 +0000 (07:11 +0200)]
win32: Actually pass y variable for y parameter

6 years agowin32: Remove unused variables
Benjamin Otte [Tue, 21 May 2019 05:10:04 +0000 (07:10 +0200)]
win32: Remove unused variables

6 years agoMerge branch 'wip/otte/for-master' into 'master'
Benjamin Otte [Tue, 21 May 2019 05:22:41 +0000 (05:22 +0000)]
Merge branch 'wip/otte/for-master' into 'master'

Wip/otte/for master

See merge request GNOME/gtk!860